package com.reform.service;

import com.reform.pojo.project.ProjectMember;
import com.baomidou.mybatisplus.extension.service.IService;
import com.reform.res.Result;

import java.sql.SQLException;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author mortale
 * @since 2021-07-20
 */
public interface IProjectMemberService extends IService<ProjectMember> {


    /**
     * 删除项目成员
     * @param proId
     * @return
     * @throws SQLException
     */
    Integer deleteProjectMemberByProId(String proId) throws SQLException;

    /**
     * 创建项目成员
     * @param projectMemberList
     * @return
     * @throws SQLException
     */
    Integer creatProjectMemberList(List<ProjectMember> projectMemberList) throws SQLException;

    /**
     * 修改项目成员
     * @param projectMemberList
     * @return
     * @throws SQLException
     */
    Integer updateProjectMemberList(List<ProjectMember> projectMemberList) throws SQLException;

    /**
     * 通过成员id删除项目成员
     * @param member_id
     * @return
     * @throws SQLException
     */
    Result deleteProjectMemberByMemberId(String member_id) throws SQLException;

    /**
     * 添加项目成员
     * @param projectMembers
     * @return
     */
    Result insertProjectMember(String projectMembers) throws SQLException;

}
